import request from '@/api/request'

//数据列表
export function index(params) {
	return request({ url: '/app/InStock/index',method: 'post',data: params})
}



//修改排序开关
export function updateExt(params) {
	return request({ url: '/app/InStock/updateExt',method: 'post',data: params})
}



//添加
export function add(params) {
	return request({ url: '/app/InStock/add',method: 'post',data: params})
}



//修改
export function update(params) {
	return request({ url: '/app/InStock/update',method: 'post',data: params})
}

export function getUpdateInfo(params) {
	return request({ url: '/app/InStock/getUpdateInfo',method: 'post',data: params})
}



//删除
export function del(params) {
	return request({ url: '/app/InStock/delete',method: 'post',data: params})
}



//查看详情
export function detail(params) {
	return request({ url: '/app/InStock/detail',method: 'post',data: params})
}


//审核入库单
export function audit(params) {
	return request({ url: '/app/InStock/audit',method: 'post',data: params})
}

//反审入库单
export function unAudit(params) {
	return request({ url: '/app/InStock/unAudit',method: 'post',data: params})
}

//保存入库单
export function saveInStock(params) {
	return request({ url: '/app/InStock/save_inStock',method: 'post',data: params})
}

//删除分录
export function deleteDetail(params) {
	return request({ url: '/app/InStock/delete_detail',method: 'post',data: params})
}

//查看详情
export function quality(params) {
	return request({ url: '/app/InStock/quality',method: 'post',data: params})
}

//查看详情
export function qualityIndex(params) {
	return request({ url: '/app/InStock/quality_index',method: 'post',data: params})
}